package com.cn.service.server.ComponentMechanical;

import com.cn.bean.pojo.ComponentMechanical.RepairApplicationMain;
import com.cn.bean.pojo.ComponentMechanical.RepairApplicationSub;
import com.cn.bean.pojo.ComponentMechanical.RepairOutsourcingMainTable;
import com.cn.bean.pojo.ComponentMechanical.RepairOutsourcingSubTable;
import com.cn.config.config.Result;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RepairApplicationService {
    List<RepairApplicationSub> selectRepairApplicationMain(int page, int limit, String equipmentName, String uniqueCode);
    List<RepairApplicationMain> selectRepairApplicationMainAll(int page,int limit,String code);
    List<RepairApplicationSub>selectRepairSubTable(RepairApplicationSub repairApplicationSub);
    List<RepairOutsourcingSubTable>selectRepairOutsourcingSub(int id);
    int insertRepairOutsourcingMainTable(RepairOutsourcingMainTable repairOutsourcingMainTable);
    int insertRepairOutsourcingSubTable(RepairOutsourcingSubTable repairOutsourcingSubTable);
    int openRepairOutsourcing(String uniqueCode);
    int updateReturn(RepairApplicationMain repairApplicationMain);
    int updateApplicationAudit(int id);
    int updateRepairOutsourcingAudit(int id);
    int delRepairOutsourcingSubTable(int id);
    int updateReturnSub(RepairApplicationSub repairApplicationSub);
    int completeRepairOutsourcing(String uniqueCode);
    Integer getRepairOutsourcingSubAutoid();
    List<RepairApplicationMain> selectRepairOutsourcingAll(int page,int limit,String code);
    Result addRepairApplicationMain(RepairApplicationMain repairApplicationMain,List<RepairApplicationSub> repairApplicationSubList);
    Result deleteRepairApplicationMain(List<Integer> idList);
    List<RepairApplicationMain> selectEchoRepairApplicationMainAll(@Param("id")int id);
    Result updateRepairApplicationMain(RepairApplicationMain repairApplicationMain,List<RepairApplicationSub> repairApplicationSubList);
    Result updateRepairApplicationMainAuto(List<Integer> idList,String reviewer,String reviewerID,String reviewTime);


}
